package ua.org.nuos.sdms.clientgui.client.context;

import ua.org.nuos.sdms.clientgui.client.controller.ControllerLocator;
import ua.org.nuos.sdms.clientgui.client.model.ModelLocator;
import ua.org.nuos.sdms.clientgui.client.view.ComponentLocator;
import ua.org.nuos.sdms.clientgui.server.services.ServiceLocator;

import javax.inject.Inject;
import java.io.Serializable;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * Created by IntelliJ IDEA.
 * User: dio
 * Date: 19.02.12
 * Time: 16:41
 * To change this template use File | Settings | File Templates.
 */
public class UserContext implements Serializable {

    @Inject
    private ServiceLocator serviceLocator;
    @Inject
    private ModelLocator modelLocator;
    @Inject
    private AppData appData;
    @Inject
    private ControllerLocator controllerLocator;
    @Inject
    private ComponentLocator componentLocator;

    public UserContext() {
        Logger.getLogger(this.getClass().getSimpleName()).log(Level.INFO, "user context is initialized");
    }

    public ServiceLocator getServiceLocator() {
        return serviceLocator;
    }

    public ModelLocator getModelLocator() {
        return modelLocator;
    }

    public AppData getAppData() {
        return appData;
    }

    public ControllerLocator getControllerLocator() {
        return controllerLocator;
    }

    public ComponentLocator getComponentLocator() {
        return componentLocator;
    }
}
